from Base import message, intersect, SS_VALID
from DRG import MDCG_DRG

def group(record):
  adrg_zd = []
  adrg_zd1 = []
  adrg_ss = ["47.0100","47.0900x001","47.0901","47.0902","47.0903","47.2x00","47.2x01","47.9100","47.9200","47.9901","98.0400x002"]
  adrg_ss1 = []
  dept_list = []

  if True and record.ssList and record.ssList[0] in adrg_ss:
    message('符合GE2入组条件，匹配规则：主手术匹配')

    if MDCG_DRG.GE29_group(record):
      return 'GE29'
        
    return 'GE2'
  else:
    return ''
    
